<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SPHinXsys: SPH::CompressibleFluid Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SPHinXsys
   &#160;<span id="projectnumber">alpha version</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_s_p_h.html">SPH</a></li><li class="navelem"><a class="el" href="class_s_p_h_1_1_compressible_fluid.html">CompressibleFluid</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="class_s_p_h_1_1_compressible_fluid-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">SPH::CompressibleFluid Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Ideal gas equation of state (EOS).  
 <a href="class_s_p_h_1_1_compressible_fluid.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="compressible__fluid_8h_source.html">compressible_fluid.h</a>&gt;</code></p>

<p>Inherits <a class="el" href="class_s_p_h_1_1_fluid.html">SPH::Fluid</a>.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a2f432bd4fecedbfd3d410329657efe49"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_compressible_fluid.html#a2f432bd4fecedbfd3d410329657efe49">CompressibleFluid</a> (Real rho0, Real gamma, Real mu=0.0)</td></tr>
<tr class="separator:a2f432bd4fecedbfd3d410329657efe49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6fe61ebb4da6fb26cd629f20fd962fb4"><td class="memItemLeft" align="right" valign="top"><a id="a6fe61ebb4da6fb26cd629f20fd962fb4"></a>
Real&#160;</td><td class="memItemRight" valign="bottom"><b>HeatCapacityRatio</b> ()</td></tr>
<tr class="separator:a6fe61ebb4da6fb26cd629f20fd962fb4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e80fa10a53cc7bd908457acb7fa8553"><td class="memItemLeft" align="right" valign="top"><a id="a8e80fa10a53cc7bd908457acb7fa8553"></a>
virtual Real&#160;</td><td class="memItemRight" valign="bottom"><b>getPressure</b> (Real rho, Real rho_e) override</td></tr>
<tr class="separator:a8e80fa10a53cc7bd908457acb7fa8553"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73e9298ea4cfc0901948d83c380bd1d3"><td class="memItemLeft" align="right" valign="top"><a id="a73e9298ea4cfc0901948d83c380bd1d3"></a>
virtual Real&#160;</td><td class="memItemRight" valign="bottom"><b>getPressure</b> (Real rho) override</td></tr>
<tr class="separator:a73e9298ea4cfc0901948d83c380bd1d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9c1c5a451c2a5f134d2216f90f686c5"><td class="memItemLeft" align="right" valign="top"><a id="ac9c1c5a451c2a5f134d2216f90f686c5"></a>
virtual Real&#160;</td><td class="memItemRight" valign="bottom"><b>DensityFromPressure</b> (Real p) override</td></tr>
<tr class="separator:ac9c1c5a451c2a5f134d2216f90f686c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acba07d8f4f86e820f983cd5b9e21e45a"><td class="memItemLeft" align="right" valign="top"><a id="acba07d8f4f86e820f983cd5b9e21e45a"></a>
virtual Real&#160;</td><td class="memItemRight" valign="bottom"><b>getSoundSpeed</b> (Real p, Real rho) override</td></tr>
<tr class="separator:acba07d8f4f86e820f983cd5b9e21e45a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aedc5f83e756c6d46c485f2245b69c99b"><td class="memItemLeft" align="right" valign="top"><a id="aedc5f83e756c6d46c485f2245b69c99b"></a>
virtual <a class="el" href="class_s_p_h_1_1_compressible_fluid.html">CompressibleFluid</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>ThisObjectPtr</b> () override</td></tr>
<tr class="separator:aedc5f83e756c6d46c485f2245b69c99b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_s_p_h_1_1_fluid"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_s_p_h_1_1_fluid')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_s_p_h_1_1_fluid.html">SPH::Fluid</a></td></tr>
<tr class="memitem:a4f9e998ecc810837a786dc858e2ba6a5 inherit pub_methods_class_s_p_h_1_1_fluid"><td class="memItemLeft" align="right" valign="top"><a id="a4f9e998ecc810837a786dc858e2ba6a5"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Fluid</b> (Real rho0, Real mu)</td></tr>
<tr class="separator:a4f9e998ecc810837a786dc858e2ba6a5 inherit pub_methods_class_s_p_h_1_1_fluid"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25de307d694612f8ab642883bc0cb6f5 inherit pub_methods_class_s_p_h_1_1_fluid"><td class="memItemLeft" align="right" valign="top"><a id="a25de307d694612f8ab642883bc0cb6f5"></a>
Real&#160;</td><td class="memItemRight" valign="bottom"><b>ReferenceViscosity</b> ()</td></tr>
<tr class="separator:a25de307d694612f8ab642883bc0cb6f5 inherit pub_methods_class_s_p_h_1_1_fluid"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_s_p_h_1_1_base_material"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_s_p_h_1_1_base_material')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_s_p_h_1_1_base_material.html">SPH::BaseMaterial</a></td></tr>
<tr class="memitem:a75b5d688573ea7e8ca447b6af7908851 inherit pub_methods_class_s_p_h_1_1_base_material"><td class="memItemLeft" align="right" valign="top"><a id="a75b5d688573ea7e8ca447b6af7908851"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>BaseMaterial</b> (Real rho0)</td></tr>
<tr class="separator:a75b5d688573ea7e8ca447b6af7908851 inherit pub_methods_class_s_p_h_1_1_base_material"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6fcb03a399882c2e79dfcbc43bcef567 inherit pub_methods_class_s_p_h_1_1_base_material"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_material.html#a6fcb03a399882c2e79dfcbc43bcef567">assignBaseParticles</a> (<a class="el" href="class_s_p_h_1_1_base_particles.html">BaseParticles</a> *base_particles)</td></tr>
<tr class="separator:a6fcb03a399882c2e79dfcbc43bcef567 inherit pub_methods_class_s_p_h_1_1_base_material"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c7b6826baaf8db97e2445e9877dca8f inherit pub_methods_class_s_p_h_1_1_base_material"><td class="memItemLeft" align="right" valign="top"><a id="a1c7b6826baaf8db97e2445e9877dca8f"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>MaterialType</b> ()</td></tr>
<tr class="separator:a1c7b6826baaf8db97e2445e9877dca8f inherit pub_methods_class_s_p_h_1_1_base_material"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace7031c99c89449760c6b1353730546a inherit pub_methods_class_s_p_h_1_1_base_material"><td class="memItemLeft" align="right" valign="top"><a id="ace7031c99c89449760c6b1353730546a"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>LocalParametersName</b> ()</td></tr>
<tr class="separator:ace7031c99c89449760c6b1353730546a inherit pub_methods_class_s_p_h_1_1_base_material"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab982ceed5715fee4081df6542a1584be inherit pub_methods_class_s_p_h_1_1_base_material"><td class="memItemLeft" align="right" valign="top"><a id="ab982ceed5715fee4081df6542a1584be"></a>
Real&#160;</td><td class="memItemRight" valign="bottom"><b>ReferenceDensity</b> ()</td></tr>
<tr class="separator:ab982ceed5715fee4081df6542a1584be inherit pub_methods_class_s_p_h_1_1_base_material"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af3e28b2477c0c025ac9d070bb2e0ff4a inherit pub_methods_class_s_p_h_1_1_base_material"><td class="memItemLeft" align="right" valign="top"><a id="af3e28b2477c0c025ac9d070bb2e0ff4a"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>writeToXmlForReloadLocalParameters</b> (const std::string &amp;filefullpath)</td></tr>
<tr class="separator:af3e28b2477c0c025ac9d070bb2e0ff4a inherit pub_methods_class_s_p_h_1_1_base_material"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d5a6aea735545924c44d8679cc2b8a8 inherit pub_methods_class_s_p_h_1_1_base_material"><td class="memItemLeft" align="right" valign="top"><a id="a9d5a6aea735545924c44d8679cc2b8a8"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>readFromXmlForLocalParameters</b> (const std::string &amp;filefullpath)</td></tr>
<tr class="separator:a9d5a6aea735545924c44d8679cc2b8a8 inherit pub_methods_class_s_p_h_1_1_base_material"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:ad48da0e7a959acad0826ddc07c47e286"><td class="memItemLeft" align="right" valign="top"><a id="ad48da0e7a959acad0826ddc07c47e286"></a>
Real&#160;</td><td class="memItemRight" valign="bottom"><b>gamma_</b></td></tr>
<tr class="separator:ad48da0e7a959acad0826ddc07c47e286"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_class_s_p_h_1_1_fluid"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_s_p_h_1_1_fluid')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="class_s_p_h_1_1_fluid.html">SPH::Fluid</a></td></tr>
<tr class="memitem:a45197e86232ce572899fb0fb148a78f8 inherit pro_attribs_class_s_p_h_1_1_fluid"><td class="memItemLeft" align="right" valign="top">Real&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_fluid.html#a45197e86232ce572899fb0fb148a78f8">mu_</a></td></tr>
<tr class="separator:a45197e86232ce572899fb0fb148a78f8 inherit pro_attribs_class_s_p_h_1_1_fluid"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_class_s_p_h_1_1_base_material"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_s_p_h_1_1_base_material')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="class_s_p_h_1_1_base_material.html">SPH::BaseMaterial</a></td></tr>
<tr class="memitem:ab335b39264109da34dc461eb5d354cf4 inherit pro_attribs_class_s_p_h_1_1_base_material"><td class="memItemLeft" align="right" valign="top"><a id="ab335b39264109da34dc461eb5d354cf4"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>material_type_name_</b></td></tr>
<tr class="separator:ab335b39264109da34dc461eb5d354cf4 inherit pro_attribs_class_s_p_h_1_1_base_material"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2cfca881b60c9940f263382c272ddfe0 inherit pro_attribs_class_s_p_h_1_1_base_material"><td class="memItemLeft" align="right" valign="top"><a id="a2cfca881b60c9940f263382c272ddfe0"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>parameters_name_</b></td></tr>
<tr class="separator:a2cfca881b60c9940f263382c272ddfe0 inherit pro_attribs_class_s_p_h_1_1_base_material"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab44c8bc85d7ee057c68acf3584035a7e inherit pro_attribs_class_s_p_h_1_1_base_material"><td class="memItemLeft" align="right" valign="top">Real&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_material.html#ab44c8bc85d7ee057c68acf3584035a7e">rho0_</a></td></tr>
<tr class="separator:ab44c8bc85d7ee057c68acf3584035a7e inherit pro_attribs_class_s_p_h_1_1_base_material"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3191e8d463f5d56fe4820acab8289cff inherit pro_attribs_class_s_p_h_1_1_base_material"><td class="memItemLeft" align="right" valign="top"><a id="a3191e8d463f5d56fe4820acab8289cff"></a>
<a class="el" href="class_s_p_h_1_1_base_particles.html">BaseParticles</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>base_particles_</b></td></tr>
<tr class="separator:a3191e8d463f5d56fe4820acab8289cff inherit pro_attribs_class_s_p_h_1_1_base_material"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac777c9aa6080bfa28fda1fdd651e5db8 inherit pro_attribs_class_s_p_h_1_1_base_material"><td class="memItemLeft" align="right" valign="top"><a id="ac777c9aa6080bfa28fda1fdd651e5db8"></a>
<a class="el" href="class_s_p_h_1_1_xml_engine.html">XmlEngine</a>&#160;</td><td class="memItemRight" valign="bottom"><b>reload_material_xml_engine_</b></td></tr>
<tr class="separator:ac777c9aa6080bfa28fda1fdd651e5db8 inherit pro_attribs_class_s_p_h_1_1_base_material"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d42511c980d93e50b325ec419c16bf2 inherit pro_attribs_class_s_p_h_1_1_base_material"><td class="memItemLeft" align="right" valign="top"><a id="a8d42511c980d93e50b325ec419c16bf2"></a>
<a class="el" href="namespace_s_p_h.html#a058f422301dc6671883a7ca3ef568075">ParticleVariableList</a>&#160;</td><td class="memItemRight" valign="bottom"><b>reload_local_parameters_</b></td></tr>
<tr class="separator:a8d42511c980d93e50b325ec419c16bf2 inherit pro_attribs_class_s_p_h_1_1_base_material"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Ideal gas equation of state (EOS). </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a2f432bd4fecedbfd3d410329657efe49"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f432bd4fecedbfd3d410329657efe49">&#9670;&nbsp;</a></span>CompressibleFluid()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">SPH::CompressibleFluid::CompressibleFluid </td>
          <td>(</td>
          <td class="paramtype">Real&#160;</td>
          <td class="paramname"><em>rho0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Real&#160;</td>
          <td class="paramname"><em>gamma</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Real&#160;</td>
          <td class="paramname"><em>mu</em> = <code>0.0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>heat capacity ratio </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>SPHINXsys/src/shared/materials/<a class="el" href="compressible__fluid_8h_source.html">compressible_fluid.h</a></li>
<li>SPHINXsys/src/shared/materials/<a class="el" href="compressible__fluid_8cpp.html">compressible_fluid.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
